<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>流程显示</title>
</head>
<body>
	<form action="processdefinition.action" class="yform" method="get">
		<div>
			<table id="contentTable">
				<tr>
					<th>流程ID</th>
					<th>流程名称</th>
					<th>版本号</th>
					<th>启动流程</th>
					<th>删除流程</th>
				</tr>
				<c:forEach items="${processDefinitionList }" var="processDefinition">
					<tr>
						<td>${processDefinition.id }</td>
						<td>${processDefinition.name }</td>
						<td>${processDefinition.version }</td>
						<td><c:if test="${processDefinition.key == 'received' }">
								<a
									href="received_art!input.action?deploymentId=${processDefinition.deploymentId }">启动流程</a>
							</c:if> <c:if test="${processDefinition.key == 'convey' }">
								<a
									href="convey_art!input.action?deploymentId=${processDefinition.deploymentId }">启动流程</a>
							</c:if>
						</td>
						<td><security:authorize ifAnyGranted="ROLE_修改角色">
								<a
									href="deletepd!deletepd.action?deploymentId=${processDefinition.deploymentId }">删除流程</a>
							</security:authorize>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<div>
			第${page.pageNo}页, 共${page.totalPages}页 <a
				href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre">
				<a href="javascript:jumpPage(${prePage})">上一页</a>
			</s:if>
			<s:if test="page.hasNext">
				<a href="javascript:jumpPage(${nextPage})">下一页</a>
			</s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
		</div>
	</form>
</body>
</html>